<?php
/****
* user及其对应timeline
*/
class UserViewModel extends ViewModel{
    public $viewFields = array( 
        'Account'=>array('_type'=>'LEFT',
                    'uid'=>'uid',
        ),
        'Timeline'=>array('_type'=>'LEFT',
                    '_on'=>'Account.uid=Timeline.uid',
                    '*',
        ),
    );
    public function _initialize(){
        $this->order('stamp DESC');
    }
}
?>